<nz-spin [nzSpinning]="isSpinning">
  <form nz-form [formGroup]="validateForm">
    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSm]="2" [nzXs]="2">
        <label for="title">标题</label>
      </div>
      <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
        <nz-input [nzDisabled]="!owner" [nzSize]="'large'" formControlName="title" [nzId]="'title'" [(ngModel)]="informationBean.title"
          name="title"></nz-input>
        <!-- <div nz-form-explain *ngIf="getFormControl('title').dirty&&getFormControl('title').hasError('required')">资讯标题不能为空!</div> -->
      </div>
    </div>
    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSm]="2" [nzXs]="2">
        <label for="subTitle">副标题</label>
      </div>
      <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
        <nz-input [nzDisabled]="!owner" [nzSize]="'large'" formControlName="subTitle" [nzId]="'subTitle'" [(ngModel)]="informationBean.subTitle"
          name="subTitle"></nz-input>
        <!-- <div nz-form-explain *ngIf="getFormControl('subTitle').dirty&&getFormControl('subTitle').hasError('required')">资讯副标题不能为空!</div> -->
      </div>
    </div>
    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSm]="2">
        <label for="fileUrls">附件</label>
      </div>
      <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
        <input *ngIf="owner" type="file" ng2FileSelect [uploader]="fileUploader" (change)="selectedFileOnChanged($event)" />

      </div>
    </div>
    <div nz-form-item nz-row>
      <div *ngIf="showImage!=null&&showImage!=''" style="margin-left: 50px">
        <div style="display: inline-block" *ngFor="let f of showImage">
          <!-- <img (click)="delete(f)" src="{{config.IP+config.API.getUpload+f}}" width="40px" height="40px" style="margin-left: 10px;"/> -->
          <i class="anticon anticon-file-text">{{f}}</i>
          <a *ngIf="informationBean.createPartyId==sysUser.partyId&&informationBean.isInit!='1'">
            <a permission="SID000013" (click)="delete(f)">删除</a>
          </a>

          <a (click)="openDocs(f)">查看</a>
          <a (click)="download1(f,informationBean.title)">下载</a>
        </div>
      </div>
    </div>
    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSm]="2" [nzXs]="24">
        <label for="content">正文</label>
      </div>
    </div>
  </form>
</nz-spin>
<ck-editor name="editor1" [(ngModel)]="informationBean.content" skin="moono-lisa" language="zh-cn" [fullPage]="true"></ck-editor>
<button permission="SID000013" *ngIf="owner" nz-button (click)="doUpdate($event)" [nzType]="'primary'">
  <span>修改</span>
</button>
